﻿#include "student.h"

student::student(QString classId,QString id,QString name)
{
    m_classId = classId;
    m_id = id;
    m_name = name;

}

QString student::getClassID()
{
    return m_classId;
}

QString student::getID()
{
    return m_id;
}

QString student::getName()
{
    return m_name;
}

QList<QString> student::getClassNames()
{
    return m_classNames;
}

QList<double> student::getClassScore()
{
    return m_classScores;
}

QList<double> student::getClassReScore()
{
    return m_classReScores;
}

QList<int> student::getClassSemesters()
{
    return m_classSemesters;
}

void student::appendClassName(QString className)
{
    m_classNames.append(className);
}

void student::appendClassScore(double classScore)
{
    m_classScores.append(classScore);
}

void student::appendClassReScore(double reClassScore)
{
    m_classReScores.append(reClassScore);
}

void student::appendClassSemester(int classSemester)
{
    m_classSemesters.append(classSemester);
}
